﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using System.Threading;
using NoSmtpSender;
using Util;
namespace b2cServer
{
    public partial class MainForm : Office2007Form
    {
         
        public MainForm()
        {
            InitializeComponent();

        }

        private void 帮助ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            SqlHelper sh = new SqlHelper();

            Util.Email email = new Util.Email();


            email.Type = "游戏";

            email.Address = "www.baidu.com";
            email.Mail = "zouna214@hotmail.com";
            email.Count = 0;

            email.Beizhu1 = "";
            email.Beizhu2 = "";


            if (sh.InsertUser(email))
            {
                MessageBox.Show("插入成功");
            }
            else
            {
                MessageBox.Show("插入失败");
            }
        }

        private void 配置ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            SearchSetting s = new SearchSetting();
            s.ShowDialog();
        }

        private void 发送设置ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ExeMail em = new ExeMail();
            em.ShowDialog();
        }
    }
}